package com.yf.esms.model.entries;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author 99698
 */
@Data
@ApiModel("商品搜索返回的商品信息")
public class GoodsInfoSearchResult {
    @ApiModelProperty(value = "商品在es索引中的文档id")
    private String id;
    @ApiModelProperty(value = "商品分类id")
    private Integer catId;
    @ApiModelProperty(value = "商品id spu")
    private Integer commonId;
    @ApiModelProperty(value = "商品是否参加促销0不参加,1砍价,2秒杀,3限时折扣")
    private Integer commonIsXian;
    @ApiModelProperty(value = "商品名称")
    private String commonName;
    @ApiModelProperty(value = "活动详情")
    private String activityGoodsDetail;
    @ApiModelProperty(value = "商品广告词")
    private String commonPromotionTips;
    @ApiModelProperty(value = "成本价")
    private BigDecimal goodsCostPrice;
    @ApiModelProperty(value = "商品id sku")
    private Integer goodsId;
    @ApiModelProperty(value = "市场价")
    private BigDecimal goodsMarketPrice;
    @ApiModelProperty(value = "最大购买数量")
    private Integer goodsMaxSale;
    @ApiModelProperty(value = "商品价格")
    private Integer goodsPrice;
    @ApiModelProperty(value = "商品是否家用 家用的话价格则所有可见 1是，0否 默认0")
    private Integer householdIsGoods;
    @ApiModelProperty(value = "对于认证会员 价格是否可见  1是 0否 默认0")
    private Integer priceIsVisible;
    @ApiModelProperty(value = "用于判断前端如何显示价格.如:0-正常显示价格 1-认证可见 2-询价可见 3-登录可见")
    private Integer priceMsg;
    @ApiModelProperty(value = "是否自营商品")
    private String shopSelfSupport;
    @ApiModelProperty(value = "厂家")
    private String manufacturer;
    @ApiModelProperty(value = "商品图片")
    private String goodsImage;
}
